﻿using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace LiaoChengFei.Core
{
    public class EngineContext
    {
        private static IEngine _enginel;

        [MethodImpl(MethodImplOptions.Synchronized)]
        public static IEngine Initialize(IEngine engine)
        {
            if (_enginel == null)
                _enginel = engine;
            return _enginel;
        }
        public static IEngine Current
        {
            get
            {
                return _enginel;
            }
        }
    }
}
